package com.kjtpay.design_pattern.abstract_factory;

/**
 * 具体的产品；SqlServer数据库读写Department表的方法；ProductB1
 */
class SqlServerDepartment implements IDepartment {
    @Override
    public String insert(Department department) {
        return "在SQLServer中给Department表增加一条记录：" + department.name;
    }

    @Override
    public String getDepartment(Integer id) {
        return "在SQLServer中根据id得到Department表一条记录";
    }
}
